@import "@wordpress/base-styles/breakpoints";
@import "@automattic/onboarding/styles/mixins";
@import "../hundred-year-plan-step-wrapper/mixins";

.step-container-v2--site-picker {
	.sites-list {
		border: 1px solid var(--studio-gray-5);
	}

	.site {
		cursor: pointer;

		&:hover {
			background-color: var(--studio-gray-0);
		}
	}
}

.site-picker-step {
	.step-container__header {
		margin: 44px 24px 24px;

		@include break-small {
			margin-top: 74px;
		}

		.formatted-header {
			.formatted-header__title {
				font-size: rem(32px);
				text-align: left;
				@include break-small {
					font-size: rem(44px);
					text-align: center;
				}
			}
		}
	}

	.step-container__content {
		.site-picker__container {
			width: 100%;
			max-height: calc(100vh - 240px);
			display: flex;
			justify-content: center;
			@include break-small {
				max-width: 780px;
				margin: 0 auto;
				padding-bottom: 60px;
			}
			.site-selector.sites-list {
				border-radius: 4px;
				width: 100%;
				margin: 0 24px;
				@include break-small {
					border: 1px solid var(--studio-gray-5);
					margin: 0 48px 0 32px;
				}

				.search {
					margin-inline-start: 0;
					margin-inline-end: 0;
					@include break-small {
						margin: 24px 24px 18px 24px;
					}
				}

				.site-selector__sites {
					@include breakpoint-deprecated( "<660px" ) {
						max-height: none;
					}

					.site {
						cursor: pointer;
						.site__content {
							padding: 14px 8px;
							@include break-small {
								padding: 14px 24px;
							}
							&:hover {
								background-color: var(--studio-gray-0);
							}
						}
					}
				}
			}
		}
	}
}

.site-picker__confirmation-modal-overlay {
	background-color: rgba(0, 0, 0, 0.6);
	align-items: center;
	justify-content: center;
}
.site-picker__confirmation-modal {
	height: max-content;
	margin: 0 16px;
	.is-placeholder {
		@include onboarding-placeholder;
	}

	.components-button.is-primary {
		@include primary-button-black-theme;
	}
}

.start-writing.site-picker {
	.signup-header {
		.wordpress-logo {
			position: absolute;
			inset-block-start: 20px;
			inset-inline-start: 24px;
			fill: var(--color-text);
			transform-origin: 0 0;
		}
	}
}
